﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="OperatorGroup.aspx.cs" Inherits="PEXAM.Admin.Page_Admin.OperatorGroup" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style2
        {
            width: 300px;
        }
        .style3
        {
            width: 131px;
        }
        .style5
        {
        }
        .RadGrid_Office2007 .rgHeader
        {
            color: #00156e;
        }
        .RadGrid_Office2007 .rgHeader
        {
            border: solid #5d8cc9;
            border-width: 0 0 1px 1px;
            background: 0 -2300px repeat-x #c3d8f1 url( 'mvwres://Telerik.Web.UI, Version=2010.3.1317.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Office2007.Grid.sprite.gif' );
        }
        .RadGrid .rgHeader
        {
            padding-top: 5px;
            padding-bottom: 4px;
            text-align: left;
            font-weight: normal;
        }
        .RadGrid .rgHeader
        {
            padding-left: 7px;
            padding-right: 7px;
        }
        .RadGrid .rgHeader
        {
            cursor: default;
        }
        .RadGrid_Office2007 .rgFilterRow
        {
            background: #d6e5f3;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlacebody" runat="server">
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    </telerik:RadCodeBlock>
    <table style="width: 100%;" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center" class="formTitle">
                User Group
            </td>
        </tr>
        <tr>
            <td colspan="7">
                &nbsp;
                <asp:Label ID="lbErr" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td class="style3">
                &nbsp;
            </td>
            <td class="style5">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style3">
                <asp:Label ID="lbROLE_ID" runat="server" Text="Code"></asp:Label>
            </td>
            <td class="style5">
                <telerik:RadTextBox ID="txtRoleId" runat="server" MaxLength="5">
                </telerik:RadTextBox>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style3">
                <asp:Label ID="Label4" runat="server" Text="Name"></asp:Label>
            </td>
            <td class="style2" colspan="2">
                <telerik:RadTextBox ID="txtRoleName" runat="server" Width="350px">
                </telerik:RadTextBox>
            </td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;
            </td>
            <td class="style5">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                Password Min Length
            </td>
            <td class="style5">
                <telerik:RadTextBox ID="txtPassLen" runat="server" Width="200px" Text="0">
                </telerik:RadTextBox>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style3">
                <asp:Label ID="lbPASS_VALID" runat="server" Text="Password Ex."></asp:Label>
            </td>
            <td class="style5">
                <telerik:RadTextBox ID="txtPassValid" runat="server" Width="200px" Text="0">
                </telerik:RadTextBox>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;
            </td>
            <td class="style5">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="hdCategory" runat="server" />
    <asp:HiddenField ID="hdCode" runat="server" />
    <div style="margin: auto auto 20px auto; width: 350px">
        <telerik:RadButton ID="btnNew" runat="server" Text="Add New" SplitButtonCssClass=""
            SplitButtonPosition="Right" OnClick="btnNew_Click" Width="100px">
        </telerik:RadButton>
        <telerik:RadButton ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click"
            Width="100px">
        </telerik:RadButton>
        <telerik:RadButton ID="btnDelete" runat="server" Text="Delete" OnClick="btnDelete_Click"
            Width="100px">
        </telerik:RadButton>
    </div>
    <br />
    <br />
    <div style="width: 100%">
        <telerik:RadGrid ID="dgvList" runat="server" AutoGenerateColumns="False" GridLines="None"
            Skin="Office2007" AllowFilteringByColumn="True" AllowMultiRowSelection="True"
            AllowPaging="True" AllowSorting="True" OnItemCommand="dgvList_ItemCommand" ShowGroupPanel="True"
            OnNeedDataSource="dgvList_NeedDataSource">
            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Office2007">
            </HeaderContextMenu>
            <MasterTableView PageSize="20" DataKeyNames="ROLE_ID">
                <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridButtonColumn CommandName="Selected" FilterControlAltText="Filter column column"
                        Text="Edit" UniqueName="column4">
                    </telerik:GridButtonColumn>
                    <telerik:GridClientSelectColumn FilterControlAltText="Filter column column" UniqueName="column8">
                    </telerik:GridClientSelectColumn>
                    <telerik:GridBoundColumn FilterControlAltText="Filter column2 column" HeaderText="Code"
                        UniqueName="column2" DataField="ROLE_ID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn FilterControlAltText="Filter column1 column" HeaderText="Name"
                        UniqueName="column1" DataField="ROLE_NAME">
                    </telerik:GridBoundColumn>
                    <telerik:GridButtonColumn CommandName="Detail" FilterControlAltText="Filter column column"
                        Text="Permission" UniqueName="column">
                    </telerik:GridButtonColumn>
                </Columns>
                <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>
            <ClientSettings AllowDragToGroup="True">
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
        </telerik:RadGrid>
    </div>
</asp:Content>
